-- GENERATED SPELL FOR [Dancing Flames] --


function spell0_25305(pUnit, Event) --@Brazier Dance,Self--
pUnit:FullCastSpellOnTarget(45427,pUnit)
pUnit:RegisterEvent('Sorts_25305', 602, 1)
end

function spell1_25305(pUnit, Event) --@Fiery Seduction,n/a--
pUnit:FullCastSpellOnTarget(47057,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_25305', 623, 1)
end

function spell2_25305(pUnit, Event) --@Summon Brazier of Dancing Flames,Self--
pUnit:FullCastSpellOnTarget(45423,pUnit)
pUnit:RegisterEvent('Sorts_25305', 593, 1)
end

function Sorts_25305(pUnit, Event)
local choix_sorts_25305 = math.random(0, 2)
if choix_sorts_25305 == 0 then
pUnit:RegisterEvent('spell0_25305', 1, 1)
end
if choix_sorts_25305 == 1 then
pUnit:RegisterEvent('spell1_25305', 1, 1)
end
if choix_sorts_25305 == 2 then
pUnit:RegisterEvent('spell2_25305', 1, 1)
end
end

function mob25305_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_25305', math.random(1500, 3000), 1)
end

function mob25305_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25305_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob25305_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(25305, 1, 'mob25305_Action')
RegisterUnitEvent(25305, 2, 'mob25305_Leave')
RegisterUnitEvent(25305, 3, 'mob25305_Kill')
RegisterUnitEvent(25305, 4, 'mob25305_Die')
